#ifndef BACKLIGHT_H
#define BACKLIGHT_H

#include <QDialog>
#include "ycapi.h"
namespace Ui {
    class Backlight;
}

class Backlight : public QDialog {
    Q_OBJECT
public:
    Backlight(QWidget *parent = 0);
    ~Backlight();
    void SetMainBacklight();
    Ycapi *ycapi;
protected:
    void changeEvent(QEvent *e);

private:
    Ui::Backlight *ui;

private slots:

    void on_close_clicked();
    void on_D0_clicked();
    void on_D1_clicked();
    void on_D2_clicked();
    void on_D3_clicked();
    void on_D4_clicked();
    void on_BackLightAutoEnable_clicked(bool checked);
};

#endif // BACKLIGHT_H
